<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<title>GUARDERIA FORMAN</title>

<link href="../css/estilo.css" rel=StyleSheet type="text/css"
	media="all">

	
<script type="text/javascript">
//<![CDATA[
window.onload = function() {
	img = document.getElementById('webcam');
	img.src += "?";
	setInterval("img.src=img.src.replace(/\\?[0-9]*/, '?'+Math.floor(Math.random()*9999999+1));", 1000);
}
//]]>
</script>

</head>

<body>
	<jsp:useBean id="beanUsuario" class="clases.Usuario" scope="request" />
	
	<%
		Cookie[] galletas = request.getCookies();
		beanUsuario.buscarCookies(galletas);
	%>
	<div id="wrapper">

		<div id="nombre-guarderia-wrapper">

			<div id="logo">
								<a href="../index.jsp"><img src="../images/logo.jpg" alt="logo" height="175" width="200" /></a>
			</div>
			<div id="nombre-guarderia">
				<h1 class="title">Guarderia Forman</h1>
			</div>
		</div>

		<div id="menu-wrapper">
			<div id="menu">
				<ul>
					<%=clases.Menu.getMenu(beanUsuario.getCategoria(),2) %>
				</ul>
			</div>
		</div>
	</div>

	<div align="center" id=div-central>
	<br> <br>
		<img src="http://localhost:8080/FormanGuarderia/images/camara0.jpg" alt="Loading..." name="webcam" width="480" height="360" border="0" id="webcam"/>
	</div>
</body>

</html>